package com.studyv3.test.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.time.LocalDateTime;


/**
 * study_book
 */
@Data
// 忽略某些未标记字段
@ExcelIgnoreUnannotated
public class StudyBookVo {

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ExcelProperty(value = "")
    private Long id;

    /**
     * 书名
     */
    @ExcelProperty(value = "书名")
    private String name;

    /**
     * 书的类型
     */
    @ExcelProperty(value = "书的类型")
    private Integer types;

    /**
     * 书的简介
     */
    @ExcelProperty(value = "书的简介")
    private String remark;

    /**
     * 书的总体评分
     */
    @ExcelProperty(value = "书的总体评分")
    private Double score;

    @ExcelProperty(value = "创建人")
    private String createBy;

    @ExcelProperty(value = "创建时间")
    private LocalDateTime createTime;
}
